const mongoose = require('mongoose')
let Schema = mongoose.Schema
let schema = new Schema({
    _id: {
        type: String,
        required: true
    },
    name: {
        type: String,
        required: true
    },
    status: {
        type: Boolean,
        default: true
    },
    sort: {
        type: Number,
        default: 0
    }
})
//创建Model对象
let model = mongoose.model('resources_category', schema)
module.exports = model